<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
</script>
<style type="text/css">
.red {color:red;}
</style>
</head>
<body>





<script>

//var textNode = document.createTextNode("<strong>Hello</strong> world!");
var element = document.createElement("div");
element.className = "red";
var textNode = document.createTextNode("Hello world!");
element.appendChild(textNode);
document.body.appendChild(element);



</script>

</body>
</html>
